import { verify } from "jsonwebtoken";

enum LandingPage {
  HOME = "home",
  USER_HOME = "user_home",
  USER_INVITATION = "user_invitation",
  BRAND_HOME = "brand_home",
  BRAND_ACTIVITY = "brand_activity",
  BRAND_ENDORSEMENT = "brand_endorsement",
  SPOKESMAN_ACTIVITY = "spokesman_activity",
  OTHER = "other",
}

export const isLandingPage = (val: any): val is LandingPage => {
  return [
    LandingPage.HOME,
    LandingPage.USER_HOME,
    LandingPage.USER_INVITATION,
    LandingPage.BRAND_HOME,
    LandingPage.BRAND_ACTIVITY,
    LandingPage.BRAND_ENDORSEMENT,
    LandingPage.SPOKESMAN_ACTIVITY,
    LandingPage.OTHER
  ].includes(val);
};

export default LandingPage;
